#ifndef CSTRINGUTILS_H_
#define CSTRINGUTILS_H_

#include <vector>
#include "../base/cobject.h"

using namespace std;

/**
 * CStringUtils - class with useful methods for manipulation with strings
 * @author Michal Rost
 * @date 06.10.2007
 */
class CStringUtils : public CObject {
public:
  static string toLower(string str);
  static string toUpper(string str);
  static string replaceAll(string origSubStr, string newSubStr, string str);
  static string removeSpaces(string str);
  static vector<string> explode(string delim, string str);
  static string getDirFromFilePath(string str);
  static string getFileNameFromFilePath(string str);
  static string removeMultipleSubstr(string str, string sub);
  static string getClassName() {
    return "CStringUtils";
  }
};

#endif
